home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 6
/
The Arsenal Files 6 (Arsenal Computer).ISO
/
prg_casm
/
jlvesa11.zip
/
JLVESA19.ASM
< prev
next >
Wrap
Assembly Source File
|
1995-11-14
|
684b
|
46 lines
; This file is part of JLVESA SVGA-library
;
; Copyright 1995 Johannes Lehtinen
; All rights reserved
model large,c
p386
segment jlvesa19_TEXT USE16 'CODE'
assume cs:jlvesa19_TEXT
; void JVColor_Set(JVUByte color, JVUByte red, JVUByte green, JVUByte blue)
;
; Sets one color
proc JVColor_Set far
public JVColor_Set
push bp
mov bp,sp
; Set color to modify
mov dx,3c8H
mov ax,[ss:bp+6]
out dx,al
; Output color values
mov dx,3c9H
mov ax,[ss:bp+8]
out dx,al
mov ax,[ss:bp+10]
out dx,al
mov ax,[ss:bp+12]
out dx,al
pop bp
retf
endp JVColor_Set
ends
end